﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="CocisWeb.Index" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
 <title>CMDB Management Platform</title>
    <link href="css/login.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
    if (window.top != self) {
        window.top.location = self.location;
    }
</script>

<script  type="text/javascript">
    function check() {
        var names = document.getElementById("TextBoxUserName");
        var pswd = document.getElementById("TextBoxPassWord");

        if (names.value == "") {
            alert('Please input UserName！');
            names.focus();
            return false;
        }
        else {
            if (pswd.value == "") {
                alert('Please input Password！');
                pswd.focus();
                return false;
            }
            else {

                return true;
            }

        }

    }
</script> 
      
<style type="text/css">
    .style1
    {
        font-size: medium;
    }
    .style2
    {
        font-size: medium;
        font-family: "Arial Unicode MS";
        height:50px;
    }
    .style3
    {
        height: 110px;
        width: 249px;
    }
    .style4
    {
        width: 249px;
    }
    .style5
    {
        height: 40px;
        width: 249px;
    }
</style>
      
</head>
<body>
<form id="form1" runat="server">
<table id="table1" width="771px" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" class="style2"></td>
</tr>
  <tr>
    <td style=" height:325px" valign="top" class="tab2">
      <table border="0" cellspacing="8" cellpadding="0" style="width: 146%">
      <tr>
        <td style=" height:110px" align="center">&nbsp;</td>
        <td align="left" class="style3">&nbsp;</td>
      </tr>
      <tr>
        <td style=" width:110px" align="center" class="style1"><strong>UserName：</strong></td>
        <td class="style4">
            <asp:TextBox ID="TextBoxUserName" runat="server" MaxLength="10"></asp:TextBox>
          </td>
      </tr>
      <tr>
        <td style=" width:110px" align="center" class="style1"><strong>Password：</strong></td>
        <td class="style4">
            <asp:TextBox ID="TextBoxPassWord" runat="server" MaxLength="30" 
                TextMode="Password"></asp:TextBox>
          </td>
      </tr>
      <tr>
        <td style=" height:40px" align="center"></td>
        <td align="left" class="style5">
            <asp:ImageButton ID="ImageButtonLogin" runat="server" 
                ImageUrl="~/images/login_bottonEn.png" onclick="ImageButtonLogin_Click" 
                onclientclick="javascript:if(check()){return true;}else{return false;}" />
          </td>
      </tr>
      <tr>
        <td style=" height:40px" align="center">&nbsp;</td>
        <td align="left" class="style5">&nbsp;</td>
      </tr>
      </table>
    </td>
  </tr>
  <tr>
   <td height="80" valign="top" >
       <table border="0" cellspacing="0" 
           cellpadding="0" style="width: 109%">
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td align="center" class="style2">Designed by Cocis</td>
      </tr>
    </table>
   </td>
  </tr>
</table>
</form>
</body>
</html>
